Revert "Convert all pending X events in _gdk_events_queue"
authorAlexander Larsson <alexl@redhat.com>
Fri, 23 Jan 2009 19:11:21 +0000 (20:11 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:26 +0000 (10:15 +0200)
This reverts commit 7cc15ec6ea1504133dfe6febbdb12615550bb966.

Its risky to convert all the events in a go like this, as it
increases the out-of-order issues. It also isn't a full solution
to the motion hint issue as it will only work for the events
we happen to convert. It would be better to use serials to
handle motion hinting.

gdk/x11/gdkevents-x11.c

index fb995408417faa98ab670414895378de896961ea..41de19c16f05f6acbc771c7ba3474d3108d403af 100644 (file)
@@ -2326,7 +2326,7 @@ _gdk_events_queue (GdkDisplay *display)
   XEvent xevent;
   Display *xdisplay = GDK_DISPLAY_XDISPLAY (display);
 
-  while (XPending (xdisplay))
+  while (!_gdk_event_queue_find_first(display) && XPending (xdisplay))
     {
       XNextEvent (xdisplay, &xevent);